#include<stdio.h>
int main()
{
int a[10],i,j,max,min;
printf("Enter the elements of array size 10:\n");
for(i=0;i<10;i++)
{
 scanf("%d",&a[i]);
}

  for(j=0;j<10;j++)
{
 if (a[i]>a[j])
max=a[i];
else 
max=a[j];
if (a[j]>a[i])
min=a[i];
else
min=a[j];
}

printf(" the largest num is%d:",max);
printf("the smallest num is %d:",min);
return 0;
}
